import React from 'react'
import styles from './App.module.css'

// 函数式子组件
export const FSon = (props: any) => {
  const { msg, id, name } = props
  console.log('函数式子组件', props)
  return (
    <div className={styles.two}>
      <div>函数子组件：</div>
      {msg}
      <div>
        {id}
        {name}
      </div>
    </div>
  )
}
